{% extends "layout" %}

{% block main %}
<h2>Installation</h2>

<p>Welcome to Webappkit admin interface installation.</p>

<form action="install" method="post">
    <fieldset>
        <legend>Create first user</legend>
        <p>Please set a user and password to enable access to webappkit administration.</p>
        <p>
            <label>User</label>
            {{ form.user }} {{ form.user.error }}
        </p>
        <p>
            <label>Password</label>
            {{ form.pwd }} {{ form.pwd.error }}
        </p>
    </fieldset>

    {% comment %}{% endcomment %}<fieldset>
        <legend>Unit test</legend>
        <p>To enable unit tests database, please provid connexion data.</p>
        <p>
            {{ form.tests_no }}
            <label for="id_tests_no">Do not set a tests database.</label>
        </p>
        <p>
            <label>Host</label>
            {{ form.tests_host }} {{ form.tests_host.error }}
        </p>

        <p>
            <label>Database</label>
            {{ form.tests_db }} {{ form.tests_db.error }}
        </p>
        <p>
            <label>User</label>
            {{ form.tests_user }} {{ form.tests_user.error }}
        </p>
        <p>
            <label>Password</label>
            {{ form.tests_pwd }} {{ form.tests_pwd.error }}
        </p>
        <p>
            <label>Encoding</label>
            {{ form.tests_encoding }} {{ form.tests_encoding.error }}
        </p>
    </fieldset>

    <p class="submit">
        <input type="submit" value="Install" />
    </p>
</form>

{% endblock %}

{% block global %}{% endblock %}